package com.smart.service;

import com.smart.dao.GoodsDao;
import com.smart.domain.goods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Jack on 2015/1/7.
 */
@Service
public class GoodsService {
@Autowired
    private GoodsDao goodsDao;

   public  List<goods> getGoodsList(int page){

       return goodsDao.GetGoodsList(page);
   }
    public  List<goods> getGoodsListByType(String key){

        return goodsDao.getGoodsByType(key);
    }
    public int getPage() {
        return goodsDao.getTotalPage();
    }

    public  List<String> getType(){
        return goodsDao.getAllType();
    }


}
